#ifndef __LCD1602_H
#define __LCD1602_H

#include "main.h"
#include "delay.h"

sbit lcd_RS = P2^0;
sbit lcd_RW = P2^1;
sbit lcd_EN = P2^2;


#define DATA_PORT P2

void Init_1602();
void sentbyte(unsigned char i,unsigned char tybe);
void displaychar(unsigned char x,unsigned char y,unsigned char wdata);
void displaystr(unsigned char x,unsigned char y,unsigned char *str);

#endif
